package com.lxyk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxyk.pojo.Worker;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WorkerMapper extends BaseMapper<Worker> {
    //模糊查询 这是mybatis里边没有的 它解决不了 只能用mybatis的xml来完成
    List<Worker> listWorker(Worker worker);

    //调整工资
    int addSalary(@Param("wid") Integer wid,@Param("workerSalary") Integer workerSalary);
}
